package com.crm.service;

import org.springframework.transaction.annotation.Transactional;

import com.crm.dao.ImDao;
import com.crm.pojo.Im;

@Transactional
public class ImService {
	private ImDao imDao;

	public void setImDao(ImDao imDao) {
		this.imDao = imDao;
	}

	public void save(Im im) {
		imDao.save(im);
		
	}

	public Im findById(String id) {
		return imDao.get(id);
	}
	
}
